Buffer<T>.Add Method
Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Utils
Declaring Type: Buffer<T>
Overloads
Add(Slice<T>) | Add a slice of data to this buffer. |
Add(int, bool) | Adds to the buffer, returning a slice of requested size |
Add(Slice<T>)
Add a slice of data to this buffer.
public Slice<T> Add(Slice<T> slice);
Parameters
Slice<T> slice | The slice to be added |
Returns
Slice<T> | A slice representing the added elements. |
Add(int, bool)
Adds to the buffer, returning a slice of requested size
public Slice<T> Add(int length, bool clear = true);
Parameters
int length | Number of elements to add |
bool clear = true | True to clear the content; otherwise false |
Returns
Slice<T> | A slice representing the allocated elements. |